package com.leps.nq.tx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leps.nq.tx.entity.PumpEffectivePoint;
import com.leps.nq.tx.mapper.PumpEffectivePointMapper;
import com.leps.nq.tx.service.IPumpEffectivePointService;
import com.leps.nq.tx.vo.PlcPumpPointVo;
import com.leps.nq.tx.vo.PumpPointVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 泵实际点位表 服务实现类
 * </p>
 *
 * @author hex
 * @since 2022-07-23
 */
@Service
public class PumpEffectivePointServiceImpl extends ServiceImpl<PumpEffectivePointMapper, PumpEffectivePoint> implements IPumpEffectivePointService {
    @Autowired
    PumpEffectivePointMapper mapper;

    @Override
    public List<PlcPumpPointVo> selectAllPlcPumpPointVo() {
        return mapper.selectAllPlcPumpPointVo();
    }

    @Override
    public PlcPumpPointVo selectPlcPumpPointVoByPlcId(int plcId) {
        return mapper.selectPlcPumpPointVoByPlcId(plcId);
    }

    @Override
    public PumpPointVo selectPumpPointVoByPumpId(int pumpId) {
        return mapper.selectPumpPointVoByPumpId(pumpId);
    }
}
